<!DOCTYPE html>
<html lang="zh-cn"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>IDEA使用maven建web项目示例 - gdwkong - 博客园</title>
<link type="text/css" rel="stylesheet" href="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/blog-common.css">
<link id="MainCss" type="text/css" rel="stylesheet" href="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/bundle-BlackLowKey.css">
<link id="mobile-style" media="only screen and (max-width: 767px)" type="text/css" rel="stylesheet" href="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/bundle-BlackLowKey-mobile.css">
<link title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cnblogs.com/gdwkong/rss">
<link title="RSD" type="application/rsd+xml" rel="EditURI" href="http://www.cnblogs.com/gdwkong/rsd.xml">
<link type="application/wlwmanifest+xml" rel="wlwmanifest" href="http://www.cnblogs.com/gdwkong/wlwmanifest.xml">
<script async="" src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/analytics_002.js"></script><script async="" src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/analytics_002.js"></script><script async="" src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/analytics.js"></script><script async="" src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/analytics.js"></script><script src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/jquery-2.js"></script>
<script type="text/javascript">var currentBlogApp = 'gdwkong', cb_enable_mathjax=false;var isLogined=false;</script>
<script src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/blog-common.js" type="text/javascript"></script>
</head>
<body>
<a name="top"></a>

<!--done-->
<div id="home">
<div id="header">
	<div id="blogTitle">
	<a id="lnkBlogLogo" href="http://www.cnblogs.com/gdwkong/"><img id="blogLogo" src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/logo.gif" alt="返回主页"></a>			
		
<!--done-->
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cnblogs.com/gdwkong/">gdwkong</a></h1>
<h2></h2>



		
	</div><!--end: blogTitle 博客的标题和副标题 -->
	<div id="navigator">
		
<ul id="navList">
<li><a id="blog_nav_sitehome" class="menu" href="http://www.cnblogs.com/">博客园</a></li>
<li><a id="blog_nav_myhome" class="menu" href="http://www.cnblogs.com/gdwkong/">首页</a></li>
<li><a id="blog_nav_newpost" class="menu" rel="nofollow" href="https://i.cnblogs.com/EditPosts.aspx?opt=1">新随笔</a></li>
<li><a id="blog_nav_contact" class="menu" rel="nofollow" href="https://msg.cnblogs.com/send/gdwkong">联系</a></li>
<li><a id="blog_nav_rss" class="menu" href="http://www.cnblogs.com/gdwkong/rss">订阅</a>
<!--<a id="blog_nav_rss_image" class="aHeaderXML" href="http://www.cnblogs.com/gdwkong/rss"><img src="//www.cnblogs.com/images/xml.gif" alt="订阅" /></a>--></li>
<li><a id="blog_nav_admin" class="menu" rel="nofollow" href="https://i.cnblogs.com/">管理</a></li>
</ul>
		<div class="blogStats">
			
			<div id="blog_stats">
<span id="stats_post_count">随笔 - 161&nbsp; </span>
<span id="stats_article_count">文章 - 18&nbsp; </span>
<span id="stats-comment_count">评论 - 2</span>
</div>
			
		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->
</div><!--end: header 头部 -->

<div id="main">
	<div id="mainContent">
	<div class="forFlow">
		
<div id="post_detail">
<!--done-->
<div id="topics">
	<div class="post">
		<h1 class="postTitle">
			<a id="cb_post_title_url" class="postTitle2" href="https://www.cnblogs.com/gdwkong/p/8370702.html">IDEA使用maven建web项目示例</a>
		</h1>
		<div class="clear"></div>
		<div class="postBody">
			<div id="cnblogs_post_body" class="blogpost-body"><p>运行环境：OSX-10.13.3、 IDEA-2017.3.3、 maven-3.5.2</p>
<h2>步骤1：选择maven-webapp模板新建web项目</h2>
<p><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128101843553-675956679.png" alt="" width="745" height="566"></p>
<h2>&nbsp;步骤2：设置项目GroupId等</h2>
<h2><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128102639303-1458437375.png" alt="" width="745" height="563">&nbsp;</h2>
<p><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128102841928-192701702.png" alt="" width="748" height="569"></p>
<p><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128102951944-2133346819.png" alt="" width="753" height="573"></p>
<p>需从网上下载相关构件，等待时间与网速和电脑配置有关.</p>
<p>&nbsp;<img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128103049569-90791581.png" alt="" width="752" height="579"></p>
<h2>&nbsp;&nbsp;步骤3：添加servlet依赖，注意servlet的版本为2.5，尝试过3.0、3.1，均无法成功构建。</h2>
<h2>　　　　 添加编译插件，默认JDK版本是1.6，编译时会报错，需指定为1.8。</h2>
<p><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128103344881-2094452736.png" alt="" width="829" height="520"></p>
<h2>&nbsp;步骤4：新建java文件夹，并指定为sources root 目录&nbsp;,之后可以看到新建servlet等选项。</h2>
<p><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128103632709-698297253.png" alt="" width="831" height="665"></p>
<p><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128103742537-394172498.png" alt="" width="830" height="661"></p>
<h2>&nbsp;步骤5：添加项目到本地tomcat服务器</h2>
<p><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128104207162-1256925701.png" alt=""></p>
<p>&nbsp;<img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128104213834-605651768.png" alt="" width="690" height="573"></p>
<p>&nbsp;步骤6：运行访问项目，至此，web项目基本环境构建完成。</p>
<p>&nbsp;<img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/1184735-20180128104221115-1534355142.png" alt=""></p>
<p>&nbsp;</p></div><div id="MySignature"></div>
<div class="clear"></div>
<div id="blog_post_info_block">
<div id="BlogPostCategory">分类: <a href="http://www.cnblogs.com/gdwkong/category/1173763.html" target="_blank">版本管理</a></div>
<div id="EntryTag">标签: <a href="http://www.cnblogs.com/gdwkong/tag/idea/">idea</a>, <a href="http://www.cnblogs.com/gdwkong/tag/maven/">maven</a>, <a href="http://www.cnblogs.com/gdwkong/tag/web/">web</a></div>
<div id="blog_post_info"><div id="green_channel">
        <a href="javascript:void(0);" id="green_channel_digg" onclick="DiggIt(8370702,cb_blogId,1);green_channel_success(this,'谢谢推荐！');">好文要顶</a>
            <a id="green_channel_follow" onclick="follow('61e223d3-a877-4a90-ed7f-08d49c352df2');" href="javascript:void(0);">关注我</a>
    <a id="green_channel_favorite" onclick="AddToWz(cb_entryId);return false;" href="javascript:void(0);">收藏该文</a>
    <a id="green_channel_weibo" href="javascript:void(0);" title="分享至新浪微博" onclick="ShareToTsina()"><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/icon_weibo_24.png" alt=""></a>
    <a id="green_channel_wechat" href="javascript:void(0);" title="分享至微信" onclick="shareOnWechat()"><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/wechat.png" alt=""></a>
</div>
<div id="author_profile">
    <div id="author_profile_info" class="author_profile_info">
            <a href="http://home.cnblogs.com/u/gdwkong/" target="_blank"><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/sample_face.gif" class="author_avatar" alt=""></a>
        <div id="author_profile_detail" class="author_profile_info">
            <a href="http://home.cnblogs.com/u/gdwkong/">gdwkong</a><br>
            <a href="http://home.cnblogs.com/u/gdwkong/followees">关注 - 0</a><br>
            <a href="http://home.cnblogs.com/u/gdwkong/followers">粉丝 - 36</a>
        </div>
    </div>
    <div class="clear"></div>
    <div id="author_profile_honor"></div>
    <div id="author_profile_follow">
                <a href="javascript:void(0);" onclick="follow('61e223d3-a877-4a90-ed7f-08d49c352df2');return false;">+加关注</a>
    </div>
</div>
<div id="div_digg">
    <div class="diggit" onclick="votePost(8370702,'Digg')">
        <span class="diggnum" id="digg_count">0</span>
    </div>
    <div class="buryit" onclick="votePost(8370702,'Bury')">
        <span class="burynum" id="bury_count">0</span>
    </div>
    <div class="clear"></div>
    <div class="diggword" id="digg_tips">
    </div>
</div>
<script type="text/javascript">
    currentDiggType = 0;
</script></div>
<div class="clear"></div>
<div id="post_next_prev"><a href="http://www.cnblogs.com/gdwkong/p/8324804.html" class="p_n_p_prefix">« </a> 上一篇：<a href="http://www.cnblogs.com/gdwkong/p/8324804.html" title="发布于2018-01-21 17:13">日志的介绍</a><br><a href="http://www.cnblogs.com/gdwkong/p/8412622.html" class="p_n_p_prefix">» </a> 下一篇：<a href="http://www.cnblogs.com/gdwkong/p/8412622.html" title="发布于2018-02-04 15:16">单例模式学习笔记</a><br></div>
</div>


		</div>
		<div class="postDesc">posted @ <span id="post-date">2018-01-28 10:58</span> <a href="http://www.cnblogs.com/gdwkong/">gdwkong</a> 阅读(<span id="post_view_count">70</span>) 评论(<span id="post_comment_count">0</span>)  <a href="https://i.cnblogs.com/EditPosts.aspx?postid=8370702" rel="nofollow">编辑</a> <a href="#" onclick="AddToWz(8370702);return false;">收藏</a></div>
	</div>
	<script type="text/javascript">var allowComments=true,cb_blogId=363569,cb_entryId=8370702,cb_blogApp=currentBlogApp,cb_blogUserGuid='61e223d3-a877-4a90-ed7f-08d49c352df2',cb_entryCreatedDate='2018/1/28 10:58:00';loadViewCount(cb_entryId);var cb_postType=1;</script>
	
</div><!--end: topics 文章、评论容器-->
</div><a name="!comments"></a><div id="blog-comments-placeholder"><div style="color:green;margin:50px 0;font-weight:bold;">努力加载评论中...</div></div><script type="text/javascript">var commentManager = new blogCommentManager();commentManager.renderComments(0);</script>
<div id="comment_form" class="commentform">
<a name="commentform"></a>
<div id="divCommentShow"></div>
<div id="comment_nav"><span id="span_refresh_tips"></span><a href="javascript:void(0);" onclick="return RefreshCommentList();" id="lnk_RefreshComments" runat="server" clientidmode="Static">刷新评论</a><a href="#" onclick="return RefreshPage();">刷新页面</a><a href="#top">返回顶部</a></div>
<div id="comment_form_container"><div class="login_tips">注册用户登录后才能发表评论，请 <a rel="nofollow" href="javascript:void(0);" class="underline" onclick="return login('commentform');">登录</a> 或 <a rel="nofollow" href="javascript:void(0);" class="underline" onclick="return register();">注册</a>，<a href="http://www.cnblogs.com/">访问</a>网站首页。</div></div>
<div class="ad_text_commentbox" id="ad_text_under_commentbox"></div>
<div id="ad_t2"></div>
<div id="opt_under_post"></div>
<div id="cnblogs_c1" class="c_ad_block"></div>
<div id="under_post_news"><div class="itnews c_ad_block"><b>最新IT新闻</b>:<br> ·  <a href="https://news.cnblogs.com/n/601299/" target="_blank">爆料丨今日头条近期将在香港提交上市申请</a><br> ·  <a href="https://news.cnblogs.com/n/601302/" target="_blank">微软Surface Go发布：399美元起、10寸/14nm奔腾CPU</a><br> ·  <a href="https://news.cnblogs.com/n/601301/" target="_blank">超级高铁创企HTT CEO描述未来远景：不想再被当做动物对待</a><br> ·  <a href="https://news.cnblogs.com/n/601298/" target="_blank">富士康造就A股“年度最差IPO” 被指科技不足“讲故事”</a><br> ·  <a href="https://news.cnblogs.com/n/601300/" target="_blank">刚刚，小游戏发布了开放100天的数据报告</a><br>» <a href="http://news.cnblogs.com/" title="IT新闻" target="_blank">更多新闻...</a></div></div>
<div id="cnblogs_c2" class="c_ad_block"><a href="http://click.aliyun.com/m/9667/" target="_blank"><img src="IDEA%E4%BD%BF%E7%94%A8maven%E5%BB%BAweb%E9%A1%B9%E7%9B%AE%E7%A4%BA%E4%BE%8B%20-%20gdwkong%20-%20%E5%8D%9A%E5%AE%A2%E5%9B%AD_files/TB1iQKbhqmWBuNjy1XaXXXCbXXa-468-60.jpg" alt="" style="width: 468px; height: 60px;"></a></div>
<div id="under_post_kb"><div class="itnews c_ad_block" id="kb_block"><b>最新知识库文章</b>:<br><div id="kb_recent"> ·  <a href="http://kb.cnblogs.com/page/598963/" target="_blank">危害程序员职业生涯的三大观念</a><br> ·  <a href="http://kb.cnblogs.com/page/601061/" target="_blank">断点单步跟踪是一种低效的调试方法</a><br> ·  <a href="http://kb.cnblogs.com/page/600804/" target="_blank">测试 | 让每一粒尘埃有的放矢</a><br> ·  <a href="http://kb.cnblogs.com/page/599854/" target="_blank">从Excel到微服务</a><br> ·  <a href="http://kb.cnblogs.com/page/522513/" target="_blank">如何提升你的能力？给年轻程序员的几条建议</a><br></div>» <a href="http://kb.cnblogs.com/" target="_blank">更多知识库文章...</a></div></div>
<div id="HistoryToday" class="c_ad_block"></div>
<script type="text/javascript">
    fixPostBody();
    setTimeout(function () { incrementViewCount(cb_entryId); }, 50);
    deliverAdT2();
    deliverAdC1();
    deliverAdC2();    
    loadNewsAndKb();
    loadBlogSignature();
    LoadPostInfoBlock(cb_blogId, cb_entryId, cb_blogApp, cb_blogUserGuid);
    GetPrevNextPost(cb_entryId, cb_blogId, cb_entryCreatedDate, cb_postType);
    loadOptUnderPost();
    GetHistoryToday(cb_blogId, cb_blogApp, cb_entryCreatedDate);   
</script>
</div>


	</div><!--end: forFlow -->
	</div><!--end: mainContent 主体内容容器-->

	<div id="sideBar">
		<div id="sideBarMain">
			
<!--done-->
<div class="newsItem">
<h3 class="catListTitle">公告</h3>
	<div id="blog-news"><div id="profile_block">昵称：<a href="https://home.cnblogs.com/u/gdwkong/">gdwkong</a><br>园龄：<a href="https://home.cnblogs.com/u/gdwkong/" title="入园时间：2017-06-17">1年</a><br>粉丝：<a href="https://home.cnblogs.com/u/gdwkong/followers/">36</a><br>关注：<a href="https://home.cnblogs.com/u/gdwkong/followees/">0</a><div id="p_b_follow"><a href="javascript:void(0);" onclick="follow('61e223d3-a877-4a90-ed7f-08d49c352df2')">+加关注</a></div><script>getFollowStatus('61e223d3-a877-4a90-ed7f-08d49c352df2')</script></div></div><script type="text/javascript">loadBlogNews();</script>
</div>

			<div id="blog-calendar" style=""><table id="blogCalendar" class="Cal" title="Calendar" cellspacing="0" cellpadding="0">
	<tbody><tr><td colspan="7"><table class="CalTitle" cellspacing="0">
		<tbody><tr><td class="CalNextPrev"><a href="javascript:void(0);" onclick="loadBlogCalendar('2018/06/01');return false;">&lt;</a></td><td align="center">2018年7月</td><td class="CalNextPrev" align="right"><a href="javascript:void(0);" onclick="loadBlogCalendar('2018/08/01');return false;">&gt;</a></td></tr>
	</tbody></table></td></tr><tr><th class="CalDayHeader" abbr="日" scope="col" align="center">日</th><th class="CalDayHeader" abbr="一" scope="col" align="center">一</th><th class="CalDayHeader" abbr="二" scope="col" align="center">二</th><th class="CalDayHeader" abbr="三" scope="col" align="center">三</th><th class="CalDayHeader" abbr="四" scope="col" align="center">四</th><th class="CalDayHeader" abbr="五" scope="col" align="center">五</th><th class="CalDayHeader" abbr="六" scope="col" align="center">六</th></tr><tr><td class="CalOtherMonthDay" align="center">24</td><td class="CalOtherMonthDay" align="center">25</td><td class="CalOtherMonthDay" align="center">26</td><td class="CalOtherMonthDay" align="center">27</td><td class="CalOtherMonthDay" align="center">28</td><td class="CalOtherMonthDay" align="center">29</td><td class="CalOtherMonthDay" align="center">30</td></tr><tr><td class="CalWeekendDay" align="center"><a href="http://www.cnblogs.com/gdwkong/archive/2018/07/01.html"><u>1</u></a></td><td align="center">2</td><td align="center">3</td><td align="center">4</td><td align="center">5</td><td align="center">6</td><td class="CalWeekendDay" align="center">7</td></tr><tr><td class="CalWeekendDay" align="center">8</td><td align="center">9</td><td class="CalTodayDay" align="center">10</td><td align="center">11</td><td align="center">12</td><td align="center">13</td><td class="CalWeekendDay" align="center">14</td></tr><tr><td class="CalWeekendDay" align="center">15</td><td align="center">16</td><td align="center">17</td><td align="center">18</td><td align="center">19</td><td align="center">20</td><td class="CalWeekendDay" align="center">21</td></tr><tr><td class="CalWeekendDay" align="center">22</td><td align="center">23</td><td align="center">24</td><td align="center">25</td><td align="center">26</td><td align="center">27</td><td class="CalWeekendDay" align="center">28</td></tr><tr><td class="CalWeekendDay" align="center">29</td><td align="center">30</td><td align="center">31</td><td class="CalOtherMonthDay" align="center">1</td><td class="CalOtherMonthDay" align="center">2</td><td class="CalOtherMonthDay" align="center">3</td><td class="CalOtherMonthDay" align="center">4</td></tr>
</tbody></table></div><script type="text/javascript">loadBlogDefaultCalendar();</script>
			
			<div id="leftcontentcontainer">
				<div id="blog-sidecolumn"><div id="sidebar_search" class="sidebar-block">
<div id="sidebar_search" class="mySearch">
<h3 class="catListTitle">搜索</h3>
<div id="sidebar_search_box">
<div id="widget_my_zzk" class="div_my_zzk"><input id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk" type="text">&nbsp;<input onclick="zzk_go()" value="找找看" id="btnZzk" class="btn_my_zzk" type="button"></div>
<div id="widget_my_google" class="div_my_zzk"><input name="google_q" id="google_q" onkeydown="return google_go_enter(event)" class="input_my_zzk" type="text">&nbsp;<input onclick="google_go()" value="谷歌搜索" class="btn_my_zzk" type="button"></div>
</div>
</div>

</div><div id="sidebar_shortcut" class="sidebar-block">
<div class="catListLink">
<h3 class="catListTitle">常用链接</h3>
<ul>
<li><a href="http://www.cnblogs.com/gdwkong/p/" title="我的博客的随笔列表">我的随笔</a></li><li><a href="http://www.cnblogs.com/gdwkong/MyComments.html" title="我发表过的评论列表">我的评论</a></li><li><a href="http://www.cnblogs.com/gdwkong/OtherPosts.html" title="我评论过的随笔列表">我的参与</a></li><li><a href="http://www.cnblogs.com/gdwkong/RecentComments.html" title="我的博客的评论列表">最新评论</a></li><li><a href="http://www.cnblogs.com/gdwkong/tag/" title="我的博客的标签列表">我的标签</a></li>
</ul>
<div id="itemListLin_con" style="display:none;">
<ul>

</ul>
</div>
</div></div><div id="sidebar_recentposts" class="sidebar-block">
<div class="catListEssay">
<h3 class="catListTitle">最新随笔</h3>
<ul>
<li><a href="http://www.cnblogs.com/gdwkong/p/9251471.html">1. Logback 日志持久化</a></li><li><a href="http://www.cnblogs.com/gdwkong/p/8997406.html">2. Spring Data Solr  ——  快速入门</a></li><li><a href="http://www.cnblogs.com/gdwkong/p/9021156.html">3. ActiveMQ集群搭建</a></li><li><a href="http://www.cnblogs.com/gdwkong/p/9020165.html">4. Spring整合JMS</a></li><li><a href="http://www.cnblogs.com/gdwkong/p/8643058.html">5. ActiveMQ</a></li><li><a href="http://www.cnblogs.com/gdwkong/p/9016828.html">6. MySQL 系列（三）你不知道的 视图、触发器、存储过程、函数、事务、索引、语句</a></li><li><a href="http://www.cnblogs.com/gdwkong/p/9012262.html">7. MySQL设计之三范式的理解</a></li><li><a href="http://www.cnblogs.com/gdwkong/p/8990045.html">8. Spring Data Redis  ——  快速入门</a></li><li><a href="http://www.cnblogs.com/gdwkong/articles/8979015.html">9. solr7.1.0之solrJ的使用</a></li><li><a href="http://www.cnblogs.com/gdwkong/articles/8978722.html">10. 单机版solr6.3和分布式solr6.3的安装部署</a></li>
</ul>
</div>
</div><div id="sidebar_toptags" class="sidebar-block">
<div class="catListTag">
<h3 class="catListTitle">我的标签</h3>
<ul>
<li><a href="http://www.cnblogs.com/gdwkong/tag/MySQL/">MySQL</a>(12)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/CentOS/">CentOS</a>(7)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/Spring/">Spring</a>(6)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/springboot/">springboot</a>(6)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/Tomcat/">Tomcat</a>(6)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/JDBC/">JDBC</a>(5)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/oracle/">oracle</a>(4)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/solr/">solr</a>(4)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/acitvemq/">acitvemq</a>(4)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/Hibernate/">Hibernate</a>(4)</li><li><a href="http://www.cnblogs.com/gdwkong/tag/">更多</a></li>
</ul>
</div></div><div id="sidebar_categories">
<div id="sidebar_postcategory" class="catListPostCategory sidebar-block">
<h3 class="catListTitle">随笔分类<span style="font-size:11px;font-weight:normal">(181)</span></h3>

<ul>

<li><a id="CatList_LinkList_0_Link_0" href="https://www.cnblogs.com/gdwkong/category/1146159.html">JavaWeb知识(47)</a> </li>

<li><a id="CatList_LinkList_0_Link_1" href="https://www.cnblogs.com/gdwkong/category/1146161.html">Java基础知识(20)</a> </li>

<li><a id="CatList_LinkList_0_Link_2" href="https://www.cnblogs.com/gdwkong/category/1164119.html">JVM(1)</a> </li>

<li><a id="CatList_LinkList_0_Link_3" href="https://www.cnblogs.com/gdwkong/category/1146299.html">shell命令(1)</a> </li>

<li><a id="CatList_LinkList_0_Link_4" href="https://www.cnblogs.com/gdwkong/category/1187359.html">springboot(2)</a> </li>

<li><a id="CatList_LinkList_0_Link_5" href="https://www.cnblogs.com/gdwkong/category/1173763.html">版本管理(5)</a> </li>

<li><a id="CatList_LinkList_0_Link_6" href="https://www.cnblogs.com/gdwkong/category/1146156.html">服务器知识(5)</a> </li>

<li><a id="CatList_LinkList_0_Link_7" href="https://www.cnblogs.com/gdwkong/category/1148070.html">框架(33)</a> </li>

<li><a id="CatList_LinkList_0_Link_8" href="https://www.cnblogs.com/gdwkong/category/1146154.html">前端知识(18)</a> </li>

<li><a id="CatList_LinkList_0_Link_9" href="https://www.cnblogs.com/gdwkong/category/1146298.html">软件安装使用(18)</a> </li>

<li><a id="CatList_LinkList_0_Link_10" href="https://www.cnblogs.com/gdwkong/category/1146160.html">设计模式知识(5)</a> </li>

<li><a id="CatList_LinkList_0_Link_11" href="https://www.cnblogs.com/gdwkong/category/1146153.html">数据库文章(24)</a> </li>

<li><a id="CatList_LinkList_0_Link_12" href="https://www.cnblogs.com/gdwkong/category/1214350.html">中间件(2)</a> </li>

</ul>

</div>

<div id="sidebar_postarchive" class="catListPostArchive sidebar-block">
<h3 class="catListTitle">随笔档案<span style="font-size:11px;font-weight:normal">(161)</span></h3>

<ul>

<li><a id="CatList_LinkList_1_Link_0" href="https://www.cnblogs.com/gdwkong/archive/2018/07.html">2018年7月 (1)</a> </li>

<li><a id="CatList_LinkList_1_Link_1" href="https://www.cnblogs.com/gdwkong/archive/2018/05.html">2018年5月 (15)</a> </li>

<li><a id="CatList_LinkList_1_Link_2" href="https://www.cnblogs.com/gdwkong/archive/2018/04.html">2018年4月 (6)</a> </li>

<li><a id="CatList_LinkList_1_Link_3" href="https://www.cnblogs.com/gdwkong/archive/2018/03.html">2018年3月 (20)</a> </li>

<li><a id="CatList_LinkList_1_Link_4" href="https://www.cnblogs.com/gdwkong/archive/2018/02.html">2018年2月 (19)</a> </li>

<li><a id="CatList_LinkList_1_Link_5" href="https://www.cnblogs.com/gdwkong/archive/2018/01.html">2018年1月 (20)</a> </li>

<li><a id="CatList_LinkList_1_Link_6" href="https://www.cnblogs.com/gdwkong/archive/2017/12.html">2017年12月 (4)</a> </li>

<li><a id="CatList_LinkList_1_Link_7" href="https://www.cnblogs.com/gdwkong/archive/2017/11.html">2017年11月 (5)</a> </li>

<li><a id="CatList_LinkList_1_Link_8" href="https://www.cnblogs.com/gdwkong/archive/2017/10.html">2017年10月 (34)</a> </li>

<li><a id="CatList_LinkList_1_Link_9" href="https://www.cnblogs.com/gdwkong/archive/2017/09.html">2017年9月 (6)</a> </li>

<li><a id="CatList_LinkList_1_Link_10" href="https://www.cnblogs.com/gdwkong/archive/2017/08.html">2017年8月 (12)</a> </li>

<li><a id="CatList_LinkList_1_Link_11" href="https://www.cnblogs.com/gdwkong/archive/2017/07.html">2017年7月 (13)</a> </li>

<li><a id="CatList_LinkList_1_Link_12" href="https://www.cnblogs.com/gdwkong/archive/2017/06.html">2017年6月 (6)</a> </li>

</ul>

</div>

<div id="sidebar_articlearchive" class="catListArticleArchive sidebar-block">
<h3 class="catListTitle">文章档案<span style="font-size:11px;font-weight:normal">(18)</span></h3>

<ul>

<li><a id="CatList_LinkList_2_Link_0" href="https://www.cnblogs.com/gdwkong/archives/2018/05.html" rel="nofollow">2018年5月 (3)</a> </li>

<li><a id="CatList_LinkList_2_Link_1" href="https://www.cnblogs.com/gdwkong/archives/2018/04.html" rel="nofollow">2018年4月 (1)</a> </li>

<li><a id="CatList_LinkList_2_Link_2" href="https://www.cnblogs.com/gdwkong/archives/2018/03.html" rel="nofollow">2018年3月 (7)</a> </li>

<li><a id="CatList_LinkList_2_Link_3" href="https://www.cnblogs.com/gdwkong/archives/2017/12.html" rel="nofollow">2017年12月 (3)</a> </li>

<li><a id="CatList_LinkList_2_Link_4" href="https://www.cnblogs.com/gdwkong/archives/2017/11.html" rel="nofollow">2017年11月 (2)</a> </li>

<li><a id="CatList_LinkList_2_Link_5" href="https://www.cnblogs.com/gdwkong/archives/2017/09.html" rel="nofollow">2017年9月 (2)</a> </li>

</ul>

</div>

</div><div id="sidebar_scorerank" class="sidebar-block">
<div class="catListBlogRank">
<h3 class="catListTitle">积分与排名</h3>
<ul>
	<li class="liScore">
		积分 -	35294
	</li>
	<li class="liRank">
		排名 -	12173
	</li>
</ul>
</div>


</div><div id="sidebar_recentcomments" class="sidebar-block"><div id="recent_comments_wrap">
<div class="catListComment">
<h3 class="catListTitle">最新评论</h3>

	<div id="RecentCommentsBlock"><ul>
        <li class="recent_comment_title"><a href="http://www.cnblogs.com/gdwkong/p/7238641.html#3745367">1. Re:CSS基础学习笔记</a></li>
        <li class="recent_comment_body">可以的  空闲的时候看看</li>
        <li class="recent_comment_author">--浪子彭三少</li>
        <li class="recent_comment_title"><a href="http://www.cnblogs.com/gdwkong/p/7238641.html#3743876">2. Re:CSS基础学习笔记</a></li>
        <li class="recent_comment_body">花了不少时间吧  这么长的博客</li>
        <li class="recent_comment_author">--TrendY</li>
</ul>
</div>
</div>
</div></div><div id="sidebar_topviewedposts" class="sidebar-block"><div id="topview_posts_wrap">
<div class="catListView">
<h3 class="catListTitle">阅读排行榜</h3>
	<div id="TopViewPostsBlock"><ul><li><a href="https://www.cnblogs.com/gdwkong/p/7633016.html">1. JDBC处理事务(3696)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/7105823.html">2. org.apache.commons.io——FileUtils学习笔记(3663)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/7086138.html">3. MAC下的Intellij IDEA常用快捷键(3426)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/7487272.html">4. MySQL之多表查询练习(2528)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/7819705.html">5. JDK的安装与卸载(1560)</a></li></ul></div>
</div>
</div></div><div id="sidebar_topcommentedposts" class="sidebar-block"><div id="topfeedback_posts_wrap">
<div class="catListFeedback">
<h3 class="catListTitle">评论排行榜</h3>
	<div id="TopFeedbackPostsBlock"><ul><li><a href="https://www.cnblogs.com/gdwkong/p/7238641.html">1. CSS基础学习笔记(2)</a></li></ul></div>
</div>
</div></div><div id="sidebar_topdiggedposts" class="sidebar-block"><div id="topdigg_posts_wrap">
<div class="catListView">
<h3 class="catListTitle">推荐排行榜</h3>
<div id="TopDiggPostsBlock"><ul><li><a href="https://www.cnblogs.com/gdwkong/p/7381648.html">1. JavaScript基础知识（一）(2)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/7413788.html">2. xml基础知识(2)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/8684850.html">3. SSH下shiro的基本使用(1)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/8608489.html">4. Spring Data JPA  ——  快速入门(1)</a></li><li><a href="https://www.cnblogs.com/gdwkong/p/8367055.html">5. Struts2（二）—  Result结果配置、Servlet的API的访问、模型驱动、属性驱动(1)</a></li></ul></div>
</div></div></div></div><script type="text/javascript">loadBlogSideColumn();</script>
			</div>
			
		</div><!--end: sideBarMain -->
	</div><!--end: sideBar 侧边栏容器 -->
	<div class="clear"></div>
	</div><!--end: main -->
	<div class="clear"></div>
	<div id="footer">
		
<!--done-->
Copyright ©2018 gdwkong
	</div><!--end: footer -->
<div id="extwaiimpotscp" style="display:none" v="{4170" f="ZXpReE56Qm1ZV0ZoTFdWbE9EY3ROR0V3WlMxaU5UZGhMVEZoWldNME9USTRNamc0TjMwPQ==" q="1f2b58b9" c="18.20" i="21.60" u="0.344" s="0fecd714" w="false" vn="0trzh"></div></div><!--end: home 自定义的最大容器 -->


<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga_uniqtrackonallpages3721');ga_uniqtrackonallpages3721('create', 'UA-60144933-28', 'auto');ga_uniqtrackonallpages3721('set', 'pageview');ga_uniqtrackonallpages3721('set', 'dimension1', '0trzh');ga_uniqtrackonallpages3721('set', 'dimension2', 'cnblogs.com');ga_uniqtrackonallpages3721('set', 'dimension3', '1f2b58b9');ga_uniqtrackonallpages3721('set', 'dimension4', 'dflt');ga_uniqtrackonallpages3721('set', 'dimension5', '0015-0030');ga_uniqtrackonallpages3721('set', 'dimension6', '2.3.6');ga_uniqtrackonallpages3721('send', {hitType: 'pageview',page: '0trzh 2.3.6 dflt 21.60 cnblogs.com',title: 'ux= 1f2b58b9'});</script></body></html>